<template>
  <el-container>
    <el-header>
      <UserHeader/>
    </el-header>
    <el-main>
      <div class="center">
        <RouterView/>
      </div>
    </el-main>
    <el-footer>
      <UserFooter/>
    </el-footer>
  </el-container>
</template>

<script setup>
import UserHeader from "@/components/home/UserHeader.vue";
import UserFooter from "@/components/home/UserFooter.vue";
import UserIndex from "@/components/home/UserIndexProduct.vue";
import {ref} from "vue";

const productList = ref([
  {id: 1, name: '商品1', price: 100, image: '/api/file/images/1838872607454674944.jpg'},
  {id: 2, name: '商品2', price: 150, image: '/api/file/images/1838872607454674944.jpg'},
  {id: 3, name: '商品3', price: 200, image: '/api/file/images/1838872607454674944.jpg'},
  {id: 4, name: '商品4', price: 250, image: '/api/file/images/1838872607454674944.jpg'},
  {id: 4, name: '商品4', price: 250, image: '/api/file/images/1838872607454674944.jpg'},
  {id: 4, name: '商品4', price: 250, image: '/api/file/images/1838872607454674944.jpg'},
  {id: 4, name: '商品4', price: 250, image: '/api/file/images/1838872607454674944.jpg'},
  {id: 4, name: '商品4', price: 250, image: '/api/file/images/1838872607454674944.jpg'},
  {id: 4, name: '商品4', price: 250, image: '/api/file/images/1838872607454674944.jpg'},
  {id: 4, name: '商品4', price: 250, image: '/api/file/images/1838872607454674944.jpg'},
  {id: 4, name: '商品4', price: 250, image: '/api/file/images/1838872607454674944.jpg'},
  {id: 4, name: '商品4', price: 250, image: '/api/file/images/1838872607454674944.jpg'},
  {id: 4, name: '商品4', price: 250, image: '/api/file/images/1838872607454674944.jpg'},
  {id: 4, name: '商品4', price: 250, image: '/api/file/images/1838872607454674944.jpg'},
  {id: 4, name: '商品4', price: 250, image: '/api/file/images/1838872607454674944.jpg'},
  {id: 4, name: '商品4', price: 250, image: '/api/file/images/1838872607454674944.jpg'},
]);
</script>

<style scoped>
.el-header, .el-footer, .el-main {
  height: auto;
  padding: 0px;
}

.el-main {
  background-color: #EEEEEE;
  padding: 0px 40px 10px;
}

.el-footer {
  background-color: var(--theme-bg-coloe);
  text-align: center;
}
</style>